<template>
    <div>
        详情页面

        <p>title</p>
        <p>{{pageData.title}}</p>
    </div>
</template>

<script>
export default {
    name: "Page.vue",
    data() {
        return {
            pageData: {}
        }
    },
    created() {
        console.log(this)
        console.log(this.$route.query);

        let goodsId = this.$route.query.id;
        this.$axios.get("http://www.liulongbin.top:3005/api/goods/getdesc/" + goodsId).then((res) => {
            console.log(res.data);
            this.pageData = res.data.message[0]
        })
    }
}
</script>

<style scoped>

</style>